home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
GAMES
/
WIMP
/
MINES2
/
!Mines
/
h
/
MineHeader
< prev
next >
Wrap
Text File
|
1995-04-30
|
2KB
|
56 lines
#ifndef _MineHeader
#define _MineHeader
/* Einige lustige includes ... */
#include "wimp.h" /* access to WIMP SWIs */
#include "colourtran.h" /* interface to colour translation module */
#include "os.h" /* low-level RISCOS access */
#include "hourglass.h"
#include "osspriteop.h"
#include "alarm.h"
#include "mouse.h"
/* ... und noch ein paar ... */
#include <string.h>
#include <limits.h>
#include <stdlib.h>
#define MINE 1 /* Flags für die Felder */
#define MARK 2
#define CLOSED 4
#define TickMenu(m,n) (m.entries[n].menu_flags |= wimp_MENU_TICKED)
#define UntickMenu(m,n) (m.entries[n].menu_flags &= ~wimp_MENU_TICKED)
#define ToggleTickMenu(m,n) (m.entries[n].menu_flags ^= wimp_MENU_TICKED)
#define ShadeMenu(m,n) (m.entries[n].icon_flags |= wimp_ICON_SHADED)
#define UnshadeMenu(m,n) (m.entries[n].icon_flags &= ~wimp_ICON_SHADED)
#define ToggleShadeMenu(m,n) (m.entries[n].icon_flags ^= wimp_ICON_SHADED)
/* Zwei Definitionen aus den mitgelieferten Beispielen */
typedef struct
{ osspriteop_area *area;
osspriteop_id id;
} spr_details;
typedef struct {wimp_w w ;
wimp_window *window ;
char *font ;
char *buffer ;
}window_data ;
#define XMAX 30
#define YMAX 16
extern int feld[XMAX][YMAX] ; /* DAS Spielfeld */
extern spr_details mark ; /* Markiertes Feld */
extern spr_details cover; /* Normal Bedecktes Feld */
extern spr_details mine ; /* Mine */
extern spr_details nomine ; /* doch keine Mine */
extern spr_details questionmark; /* ein Fragezeichen */
extern int mines_left,fields_left; /* Zähler Variable */
/* Richtungen zum Suchen */
extern int off[8][2];
#endif